vector
is NA
, then its value
is inferred from the length of the object and the other elements in the
dimension vector. If the inferred dimension is not an integer
, an
error is thrown.## S3 method for class 'default':
dimNA(x) <- value
dim<-()
returns
(see dim
() for more details).dim
().x <- 1:12
dimNA(x) <- c(2,NA,3)
stopifnot(dim(x) == as.integer(c(2,2,3)))
Run the code above in your browser using DataLab